package backtype.storm.task;

import backtype.storm.metric.api.*;


public interface IMetricsContext {
    <T extends IMetric> T registerMetric(String name, T metric, int timeBucketSizeInSecs);


    ReducedMetric registerMetric(String name, IReducer reducer, int timeBucketSizeInSecs);


    CombinedMetric registerMetric(String name, ICombiner combiner, int timeBucketSizeInSecs);
}
